Crate array_iter_tools[][src]

Expand description

Modify simple arrays

use array_iter_tools::{ArrayIterator, IntoArrayIterator};
let a = [1, 2, 3, 4];
let b = [5, 6, 7, 8];
let c = a.into_array_iter().zip(b).map(|(a, b)| a + b).collect();
assert_eq!(c, [6, 8, 10, 12]);

Modules

array

ArrayIterator implementations on [T; N]

map

ArrayIterator implmentations on Map

mut_ref

ArrayIterator implementations on &mut [T; N]

reference

ArrayIterator implementations on &[T; N]

zip

ArrayIterator implmentations on Zip

Traits

ArrayIterator

Similar to Iterator, ArrayIterator is an iterator over constant sized arrays

IntoArrayIterator

Similar to IntoIterator, IntoArrayIterator allows types to become ArrayIterators